<%@page import="java.util.List"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="eu.telecom_bretagne.RECRUT.service.IServiceEmploye"%>
<%@page import="eu.telecom_bretagne.RECRUT.data.model.Employe"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	InitialContext ctx = new InitialContext();
	IServiceEmploye serviceEmploye = (IServiceEmploye) ctx
			.lookup(IServiceEmploye.JNDI_NAME);

	int id = Integer.parseInt(request.getParameter("id"));
	Employe employe = serviceEmploye.lireEmploye(id);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Création d'un dossier</title>
</head>
<body>
	<h1>Création d'un dossier</h1>
	<form method="post" action="creer_dossier">
		<table>
			<tr>
				<td><b>Titre:</b></td>
				<td><input type="text" name="titre" value=""></td>
			</tr>
			<tr>
				<td><b>Candidature:</b></td>
				<td><input type="text" name="candidature" value=""></td>
			</tr>
			<tr>
				<td><b>Offre:</b></td>
				<td><input type="text" name="offre" value=""></td>
			</tr>
		</table>
		<input type="submit">
	</form>
	<a href="liste_dossier.jsp?id=<%=employe.getId()%>">Annuler /
		retour</a>
</body>
</html>